package sg.techstudio.suntec.object;

import java.io.Serializable;
import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonDeserialize;
import org.codehaus.jackson.map.annotate.JsonSerialize;

import sg.techstudio.suntec.serialize.CustomJsonDateDeserializer;
import sg.techstudio.suntec.serialize.CustomJsonDateSerializer;

public class BookObj implements Serializable{
	private static final long serialVersionUID = 3329510690345326185L;

	private Integer id;
	private String name;
	private boolean active;
	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	@JsonSerialize(using=CustomJsonDateSerializer.class)
	private Date startDate;
	
	public Date getStartDate() {
		return startDate;
	}
	public boolean getActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

}
